package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.domain.LoanIouDeferred;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.vo.LoanIouDeferredVo;

/**
 * 延期借据Service接口
 *
 * @author wqg
 * @date 2022-06-09
 */
public interface ILoanIouDeferredService extends IService<LoanIouDeferred>{
    /**
     * 查询延期借据
     *
     * @param id 延期借据ID
     * @return 延期借据
     */
    public LoanIouDeferred selectLoanIouDeferredById(Long id);

    /**
     * 查询延期借据列表
     *
     * @param loanIouDeferred 延期借据
     * @return 延期借据集合
     */
    public List<LoanIouDeferredVo> selectLoanIouDeferredList(LoanIouDeferred loanIouDeferred);

    /**
     * 新增延期借据
     *
     * @param loanIouDeferred 延期借据
     * @return 结果
     */
    public int insertLoanIouDeferred(LoanIouDeferred loanIouDeferred);

    /**
     * 修改延期借据
     *
     * @param loanIouDeferred 延期借据
     * @return 结果
     */
    public int updateLoanIouDeferred(LoanIouDeferred loanIouDeferred);

    /**
     * 批量删除延期借据
     *
     * @param ids 需要删除的延期借据ID
     * @return 结果
     */
    public int deleteLoanIouDeferredByIds(Long[] ids);

    /**
     * 删除延期借据信息
     *
     * @param id 延期借据ID
     * @return 结果
     */
    public int deleteLoanIouDeferredById(Long id);

    void updateByloanSerialNo(LoanIou loanIou);

    Integer getCurrentDeferredCnt(String loanSerialNo);

    String getJieQingLiXi(String customerNo);

    String getJieQingFuWuFei(String customerNo);

    String getcurrentinterest(String loanSerialNo);

    String getloanIouDeferredService(String loanSerialNo);

    LoanIouDeferred getDeferred(Long loanSerialDeferredNo);

    int getDeferredTotalDay(String custNo);
}
